/**
 * <p>Copyright (c) 2016 深圳市鹏途交通科技有限公司</p>
 * <p>					All right reserved. 		 </p>
 * <p>项目名称 ： 	深圳公路信息资源整合及国省检日常化监管管理项目        </p>
 * <p>创建者   :	wy
 * <p>描   述  :  A2-03技术状况评定(表16) </p>
 * <p>最后修改 :  $: 2017-4-18-下午3:50:01	wy   $     </p>
 * 
 */

package com.pengtu.gsj.entity.yh;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.pengtu.gsj.entity.app.Attachment;
import com.pengtu.gsj.entity.base.IdEntity;

@Entity
@Table(name = "T_YH_TECCONEVALUTION")
public class TecConEvalution extends IdEntity {

	private static final long serialVersionUID = -6429870906188976336L;

	private String testYear; // 检测年份

	private Double mileageAssessed; // 应检测评定里程数

	private Double automaticDetectionMileage; // 自动化检测里程

	private Double annualMaintenanceMileage; // 年度养护里程

	private Double constructionMileage; // 施工路段里程

	private Double autocheckRatio; // 自动化检测比例 百分比
	
	private Integer bulletinNumber;   //检测文件数
	
	private List<Attachment> attachments;
	
	private String remark;

	public TecConEvalution() {
	}

	@Column(name = "TESTYEAR")
	public String getTestYear() {
		return testYear;
	}

	public void setTestYear(String testYear) {
		this.testYear = testYear;
	}

	@Column(name = "MILEAGEASSESSED")
	public Double getMileageAssessed() {
		return mileageAssessed;
	}

	public void setMileageAssessed(Double mileageAssessed) {
		this.mileageAssessed = mileageAssessed;
	}

	@Column(name = "AUTOMATICDETECTIONMILEAGE")
	public Double getAutomaticDetectionMileage() {
		return automaticDetectionMileage;
	}

	public void setAutomaticDetectionMileage(Double automaticDetectionMileage) {
		this.automaticDetectionMileage = automaticDetectionMileage;
	}

	@Column(name = "ANNUALMAINTENANCEMILEAGE")
	public Double getAnnualMaintenanceMileage() {
		return annualMaintenanceMileage;
	}

	public void setAnnualMaintenanceMileage(Double annualMaintenanceMileage) {
		this.annualMaintenanceMileage = annualMaintenanceMileage;
	}

	@Column(name = "CONSTRUCTIONMILEAGE")
	public Double getConstructionMileage() {
		return constructionMileage;
	}

	public void setConstructionMileage(Double constructionMileage) {
		this.constructionMileage = constructionMileage;
	}

	@Column(name = "AUTOCHECKRATIO")
	public Double getAutocheckRatio() {
		return autocheckRatio;
	}

	public void setAutocheckRatio(Double autocheckRatio) {
		this.autocheckRatio = autocheckRatio;
	}

	@Transient
	public Integer getBulletinNumber() {
		bulletinNumber = attachments.size();
		return bulletinNumber;
	}

	public void setBulletinNumber(Integer bulletinNumber) {
		this.bulletinNumber = bulletinNumber;
	}
	
	@OneToMany(fetch = FetchType.LAZY)
	@JoinColumn(name = "PARTID")
	public List<Attachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	
	
}
